package com.bytedance.improvingroad.adapter

import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.bytedance.improvingroad.fragment.RvDataFragment

/**
 * Created by chenxiong
 * date 1/23/22
 */
class CommonPageAdapter(fragmentActivity: FragmentActivity, private val pageCount: Int) :
    FragmentStateAdapter(fragmentActivity) {

    override fun getItemCount() = pageCount
    override fun createFragment(position: Int) = RvDataFragment()

}